package com.itxiao.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * (SysRole)表实体类
 *
 * @author makejava
 * @since 2025-09-17 17:14:43
 */
@Data
@TableName("sys_role")
@AllArgsConstructor
@NoArgsConstructor
public class SysRole {
    @TableId(type = IdType.AUTO)
    private Integer id;

    private String name;

    private Integer sort;
    //角色权限字符串
    private String perms;
    //0启用，1禁用
    private Integer status;
    //0存在，1删除
    private Integer isDelete;
    //商户id
    private Integer merchantId;


    /** 菜单组 */
    @TableField(exist = false)
    private int[] menuIds;
}
